import Player from "../player/player.js";
import Item from "./item.js";

export const propMap = {};

/**道具 */
export default abstract class Prop extends Item {
	static map = {};
	static name2Class = {};

	constructor(name: string) {
		super(name);
		Prop.map[this.constructor.name] = this.constructor;
		Prop.name2Class[this.name] = this;
	}

	/**使用 */
	abstract use(user: Player): { msg: string; };
}